}
},
+ _updateSensitivity: function(sensitive) {
+ this._passwordEntry.reactive = sensitive;
+ this._passwordEntry.clutter_text.editable = sensitive;
+
+ this._okButton.can_focus = sensitive;
+ this._okButton.reactive = sensitive;
+ },
+
_onEntryActivate: function() {
let response = this._passwordEntry.get_text();
+ this._updateSensitivity(false);
this._session.response(response);
// When the user responds, dismiss already shown info and
// error texts (if any)
this._passwordBox.show();
this._passwordEntry.set_text('');
this._passwordEntry.grab_key_focus();
+ this._updateSensitivity(true);
this._ensureOpen();
},